package com.zhkc.iess.auth.api;

import com.zhkc.iess.auth.dto.LoginInfoDTO;
import com.zhkc.iess.auth.vo.LoginInfoVO;
import com.zhkc.wisdom.common.pojo.vo.ResultVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.*;

/**
 * PC端 认证api接口.
 */
@Tag(name = "Auth认证接口", description = "Auth认证接口")
public interface AuthApi {


    @Operation(summary = "登录", description = "登录")
    @PostMapping("/api/auth/login")
    ResultVO<LoginInfoVO> login(@RequestBody @Valid LoginInfoDTO dto);

    @Operation(summary = "注销", description = "注销")
    @PostMapping("/api/auth/loginOut")
    ResultVO<Void> loginOut();


    @Operation(summary = "测试接口", description = "测试接口")
    @GetMapping("/api/auth/test")
    ResultVO<Void> test();
}
